<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
    <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script type="text/javascript">
			function FCKeditor_OnComplete(editorInstance) {
				var oCombo = document.getElementById('cmbSkins') ;
	
				// Get the active skin.
				var sSkin = editorInstance.Config['SkinPath'] ;
				sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
	
				oCombo.value = sSkin ;
				oCombo.style.visibility = '' ;
			}

			function ChangeSkin(skinName) {
				window.location.href = window.location.pathname + "?skin=" + skinName ;
			}
		</script>
</head>
<body>
 <tiles:insertTemplate template="/WEB-INF/layout_admin/layout.jsp" flush="true"> 
	<tiles:putAttribute name="body" >
		<div class="main-content">
			<s:form method="POST" action="saveContactUs">
				<h2>联系信息：</h2>
				 <FCK:editor instanceName="contactUs.information" value="${contactUs.information}" height="200px" width="400px">
					            <jsp:body>
					               <FCK:config SkinPath="${skin}"/>
					            </jsp:body>
					         </FCK:editor>
				<s:file name="photo" label="公司描述"/>
				<s:textfield name="contactUs.address" label="联系地址"/>
				<s:textfield name="contactUs.tel" label="联系电话"/>
				<s:textfield name="contactUs.contactMan" label="联系人"/>
				<input type="hidden" name="contactUs.id" value="${contactUs.id}"/>
				<s:submit name="提交" label="提交" />
			</s:form>
        </div>
		
	</tiles:putAttribute>
</tiles:insertTemplate> 

</body>
</html>